package com.hmdecms.springBoot.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hmdecms.springBoot.model.User;
import com.hmdecms.springBoot.responsity.DemoResponsity;

@Service
public class SpingBootService {

	@Resource
	private DemoResponsity demoResponsity;
	
	public Integer Demo1dayService(User user){
		 User save = demoResponsity.save(user);
		 return save.getId();
	}
	
	public User findUserById(Integer id){
		User findUserById = demoResponsity.findUserById(id);
		return findUserById;
	}
}
